﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Project.Model;
using System.Data.Entity;

namespace Project.API.Models.GoodModels
{
    public class OrdersEditDto
    {
        [Key]
        public string Did { get; set; }

        public int? UserId { get; set; }

        public int? Gid { get; set; }

        [Column(TypeName = "date")]
        public DateTime CreateDate { get; set; }

        [Required]
        [StringLength(40)]
        public string OrderStatus { get; set; }

        public double TotalAmount { get; set; }

        public int OrderNumber { get; set; }

        [Column(TypeName = "text")]
        [Required]
        public string Notes { get; set; }

        public int Price { get; set; }  //单价

        public string Name { get; set; }  //商品名称
        public string Address { get; set; }  
        public string  Images { get; set; }  //商品图片

        public List<OrdersSpecDto> OrdersSpec { get; set; }
       
    }
}